class UrlMappings {

  static mappings = {
    "/" {
      controller = "videoCategory"
    }
	
    "/videoCategory/$action/$feed1?/$feed2?/$time?/$startIndex?/$videoId?/$keywords?"{
      controller = 'videoCategory'
      feed = {
        if(params.feed1)
          "${params.feed1}/${params.feed2}"
      }
    }
	
    "/videoCategory/$action/$feed1?/$feed2?//$startIndex?/$videoId?/$keywords?"{
      controller = 'videoCategory'
      feed = {
        if(params.feed1)
          "${params.feed1}/${params.feed2}"
      }
    }

    "/videoCategory/$action/$feed1?/$feed2?/$time?/$startIndex?/$keywords?"{
      controller = 'videoCategory'
      feed = {
        if(params.feed1)
          "${params.feed1}/${params.feed2}"
      }
    }

    "/$controller/$action?/$id?"{
      constraints {
        // apply constraints here
      }
    }

    "500"(view:'/error')
  }
}
